WPDesk\ShopMagicCart\Interceptor\CartInterceptor A

Total Complexity 57
Dependencies 20
Dependents 0
Total lines 327
Lines of code 229
Logical lines of code 124
Comment lines 40
Methods 15
Properties 7

Methods 15

Method Rating Maintainability Complexity Lines of code
save_cart()
A
44 11 44
should_save_cart()
A
51 10 26
sync_cart_with_order()
A
46 7 40
mark_as_ordered()
S
53 5 24
trigger_update_on_cart_and_checkout_pages()
S
66 4 9
get_tracking_key()
S
63 4 10
get_cart()
S
62 3 12
hooks()
S
52 2 25
set_changed_into_cookie()
S
73 2 5
set_changed_from_cookie()
S
71 2 6
store_tracking_key()
S
71 2 6
is_needed()
S
72 2 6
__construct()
S
67 1 8
separate_cart_from_session()
S
73 1 5
set_changed()
S
81 1 3